<%@ page language="java"  pageEncoding="utf-8"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>电子钱包</title>
		<link href="https://my.moneymoremore.com/css/style.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="https://my.moneymoremore.com/js/My97DatePicker/WdatePicker.js"></script>
		<script language="JavaScript" src="https://my.moneymoremore.com/js/util.js"></script>
		<script type="text/javascript">
			function dateRecord(day){
				document.getElementById("days").value=day;
				document.getElementById("myForm").submit();
			}
			
			//判断日期
			function sousuo(){
				var stime=document.getElementById("stime").value;
				var etime=document.getElementById("etime").value;
				
				document.getElementById("days").value="";
				
				document.getElementById("myForm").submit();
			}
		
			function setpageinfo(n)
			{
				$("#curpage").val(n);
				$("#myForm").submit();
			}
			
			function downEXCEL()
			{
				var formX = document.getElementById("myForm");
				var exportX = document.getElementById("isdownload");
				exportX.value="TRUE";
				formX.submit();
				exportX.value="";
			}
	
		</script>
	</head>
	<body>

			


<script type="text/javascript" src="https://my.moneymoremore.com/js/jquery-1.8.3.js"></script>
<script type="text/javascript">
	
$().ready(function()
		 {
		  $("li[id^='managermentid']").hover(function(){ 
		   $(this).addClass('nav_down'); 
		   },function(){ 
		   $(this).removeClass('nav_down'); 
		  }); 
		 }); 
	$(document).ready(function() {
		//获取url中的参数
		function getUrlParam(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
			var r = window.location.search.substr(1).match(reg); //匹配目标参数
			if(r != null) return unescape(r[2]);
			return null; //返回参数值
		}
		var menuindex= getUrlParam('menuindex');
		//alert(menuindex);
		if( menuindex != null) {
			$("#menuindex"+ menuindex).addClass("active");
		}
	});
$.ajax({
    //几个参数需要注意一下
    type: "POST",//方法类型
    dataType: "json",//预期服务器返回的数据类型
    url: "find.do" ,//url
    success:function (result) {
        //alert(result);
		for(i=0;i<result.length;i++){
		    var assetref=result[i].balance.assets[0]!=null?result[i].balance.assets[0].assetref:"";
		    var amount=result[i].balance.assets[0]!=null?result[i].balance.assets[0].qty:"0";
			$("#resulttable").append(
				"<tr>" +
                "<td width=\"2%\" bgcolor=\"#ebf2f9\">" +
                "\t&nbsp;\n" +
                "</td>" +
                "<td width=\"13%\" bgcolor=\"#ebf2f9\">" +
					result[i].time+
                "</td>\n" +
                "<td width=\"10%\" bgcolor=\"#ebf2f9\">" +
                	assetref+
                "</td>" +
                "<td width=\"18%\" bgcolor=\"#ebf2f9\">" +
                	result[i].addresses[0] +
                "</td>" +
                "<td width=\"10%\" bgcolor=\"#ebf2f9\">\n" +
                	amount+
                "</td>\n" +
                "<td width=\"4%\" bgcolor=\"#ebf2f9\">\n" +
                "\t&nbsp;\n" +
                "</td>" +
                "</tr>");
		}
    },
    error : function() {
        alert("异常！");
    }
});
</script>
<div id="account">
    <div class="account_top">
      <div class="account_top001">
        <div class="logo"><h1><strong>电子钱包</strong></h1></div>
        <div class="account_top003">
 您好，游客
         &nbsp;&nbsp;&nbsp;&nbsp;<a href="#">退出 </a></div>
      </div>
      <div class="account_top002">
        <div class="account_top005">
           <ul> 
            <li onclick="showmenu('menu1');" id="managermentid1"> <a href="detail.jsp">我的帐户</a></li>
            <li onclick="showmenu('menu2');" id="managermentid" style="margin-left:50px;"><a href="transaction.jsp">转账</a></li>
            <li onclick="showmenu('menu3');" class="nav_bg"><a href="find.jsp">查询记录</a></li>
           </ul>
        </div>
      </div>
    </div>
        
  
</div>

			<div class="account_center01">
				<div class="management">
					<div class="record_001">
						<form action="TransferTheRecord.action" id="myForm" name="myForm" method="post">
							<tr style="display:none;">
  <td colspan="2">
<input type="hidden" name="isdownload" value="" id="isdownload"/>  </td>
</tr>

							<div class="record_001top">
								<div class="record_002">
									<div class="record_009">
										<span class="font_14px"><strong>付款记录</strong></span>
									</div>
								</div>
								<div class="record_003" style="height: 35px;">
									<input type="hidden" name="days" id="days" value="0" />
									<div class="record_007">
										<a href="###" onclick="dateRecord('1')">今天</a> |
										<a href="###" onclick="dateRecord('2')">最近7天</a> |
										<a href="###" onclick="dateRecord('3')">1个月</a> |
										<a href="###" onclick="dateRecord('4')">3个月 </a> |
										<a href="###" onclick="dateRecord('5')">所有</a>
									</div>
								</div>
							</div>
							<!--查询转账记录-->
							<div class="record_001conter">
								<table width="100%" border="0" cellspacing="0" id="resulttable">
									<tr>
										<td width="2%" bgcolor="#ebf2f9">
											&nbsp;
										</td>
										<td width="13%" bgcolor="#ebf2f9">
											创建时间
										</td>
										<td width="10%" bgcolor="#ebf2f9">
											名称
										</td>
										<td width="18%" bgcolor="#ebf2f9">
											交易者地址
										</td>
										<td width="10%" bgcolor="#ebf2f9">
											金额（元）
										</td>
										<td width="4%" bgcolor="#ebf2f9">
											&nbsp;
										</td>
									</tr>
									
								</table>
								<!--
									<div class="record_013">共0条
									<a>共有 0页</a>
									<a>当前第1页</a>
									<a href ="TransferTheRecord.action?info.curPage=1">首页</a> 
									<a href ="TransferTheRecord.action?info.curPage=1">上一页</a> 
									<a href ="TransferTheRecord.action?info.curPage=1">下一页</a>&gt;
									<a href ="TransferTheRecord.action?info.curPage=0">尾页</a>&gt;&gt;
									</div>
								-->
								<div class="bank10">
									&nbsp;
								</div>
								<div class="pageCon">
									<div class="pageDiv_center">
										共0条
										<a href="###" onclick="setpageinfo(1)">首页</a>
										<a href="###" onclick="setpageinfo(1)">上一页</a>
										<a href="###" onclick="setpageinfo(0)">下一页</a>&gt;
										<a href="###" onclick="setpageinfo(0)">尾页</a>&gt;&gt;
										<input type="hidden" id="curpage" name="info.curPage" value="" />
									</div>
								</div>
								<div class="bank10">
									&nbsp;
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		


<style type="text/css">body{font-family:"Microsoft YaHei";}</style>
<div class="account_bottom" align="center" style="margin: 0 auto;background: #f9f9f9;height: 80px;">
     <table align="center" width="100%" style="font-size: 12px;margin-top: 5px; color: #b4b4b4;">
     	<tr>
     		<td align="center">
     			电子报告实习-元奎渊 61202107
     		</td>
     		<td style="display: none;">&nbsp;&nbsp;
     		<!--  
     			<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fa5e5e5a22ff370c2938c05af8076aee9' type='text/javascript'%3E%3C/script%3E"));
</script>
-->
     		</td>
     	</tr>
     
     </table>

  </div>
	</body>
</html>